home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6d 6f | 72 72 6f 77 2e 73 74 61 |Path: mo|rrow.sta|
|00000010| 6e 66 6f 72 64 2e 65 64 | 75 21 75 73 65 6e 65 74 |nford.ed|u!usenet|
|00000020| 0a 46 72 6f 6d 3a 20 4c | 75 63 69 61 6e 6f 20 42 |.From: L|uciano B|
|00000030| 72 6f 63 63 68 69 65 72 | 69 20 3c 6c 75 63 69 61 |rocchier|i <lucia|
|00000040| 6e 6f 40 67 6e 6f 6d 69 | 63 2e 73 74 61 6e 66 6f |no@gnomi|c.stanfo|
|00000050| 72 64 2e 65 64 75 3e 0a | 4e 65 77 73 67 72 6f 75 |rd.edu>.|Newsgrou|
|00000060| 70 73 3a 20 63 6f 6d 70 | 2e 6c 61 6e 67 2e 63 2b |ps: comp|.lang.c+|
|00000070| 2b 0a 53 75 62 6a 65 63 | 74 3a 20 64 79 6e 61 6d |+.Subjec|t: dynam|
|00000080| 69 63 20 6d 65 6d 6f 72 | 79 20 61 6c 6c 6f 63 61 |ic memor|y alloca|
|00000090| 74 69 6f 6e 0a 44 61 74 | 65 3a 20 53 75 6e 2c 20 |tion.Dat|e: Sun, |
|000000a0| 32 38 20 4a 61 6e 20 31 | 39 39 36 20 30 30 3a 30 |28 Jan 1|996 00:0|
|000000b0| 34 3a 32 35 20 2b 30 30 | 30 30 0a 4f 72 67 61 6e |4:25 +00|00.Organ|
|000000c0| 69 7a 61 74 69 6f 6e 3a | 20 53 74 61 6e 66 6f 72 |ization:| Stanfor|
|000000d0| 64 20 55 6e 69 76 65 72 | 73 69 74 79 0a 4d 65 73 |d Univer|sity.Mes|
|000000e0| 73 61 67 65 2d 49 44 3a | 20 3c 33 31 30 41 42 44 |sage-ID:| <310ABD|
|000000f0| 38 39 2e 35 35 33 37 40 | 67 6e 6f 6d 69 63 2e 73 |89.5537@|gnomic.s|
|00000100| 74 61 6e 66 6f 72 64 2e | 65 64 75 3e 0a 52 65 70 |tanford.|edu>.Rep|
|00000110| 6c 79 2d 54 6f 3a 20 6c | 75 63 69 61 6e 6f 40 67 |ly-To: l|uciano@g|
|00000120| 6e 6f 6d 69 63 2e 73 74 | 61 6e 66 6f 72 64 2e 65 |nomic.st|anford.e|
|00000130| 64 75 0a 4e 4e 54 50 2d | 50 6f 73 74 69 6e 67 2d |du.NNTP-|Posting-|
|00000140| 48 6f 73 74 3a 20 74 69 | 70 2d 6d 70 31 30 2d 6e |Host: ti|p-mp10-n|
|00000150| 63 73 2d 38 2e 73 74 61 | 6e 66 6f 72 64 2e 65 64 |cs-8.sta|nford.ed|
|00000160| 75 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |u.Mime-V|ersion: |
|00000170| 31 2e 30 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |1.0.Cont|ent-Type|
|00000180| 3a 20 74 65 78 74 2f 70 | 6c 61 69 6e 3b 20 63 68 |: text/p|lain; ch|
|00000190| 61 72 73 65 74 3d 75 73 | 2d 61 73 63 69 69 0a 43 |arset=us|-ascii.C|
|000001a0| 6f 6e 74 65 6e 74 2d 54 | 72 61 6e 73 66 65 72 2d |ontent-T|ransfer-|
|000001b0| 45 6e 63 6f 64 69 6e 67 | 3a 20 37 62 69 74 0a 58 |Encoding|: 7bit.X|
|000001c0| 2d 4d 61 69 6c 65 72 3a | 20 4d 6f 7a 69 6c 6c 61 |-Mailer:| Mozilla|
|000001d0| 20 32 2e 30 62 35 20 28 | 4d 61 63 69 6e 74 6f 73 | 2.0b5 (|Macintos|
|000001e0| 68 3b 20 49 3b 20 50 50 | 43 29 0a 0a 46 72 6f 6d |h; I; PP|C)..From|
|000001f0| 20 6d 61 69 6e 20 49 20 | 61 6d 20 70 61 73 73 69 | main I |am passi|
|00000200| 6e 67 20 61 20 70 6f 69 | 6e 74 65 72 20 69 6e 74 |ng a poi|nter int|
|00000210| 20 2a 70 20 74 6f 20 61 | 20 66 75 6e 63 74 69 6f | *p to a| functio|
|00000220| 6e 20 66 75 6e 63 74 69 | 6f 6e 28 70 2c 26 6e 29 |n functi|on(p,&n)|
|00000230| 0a 77 68 69 63 68 20 61 | 6c 6c 6f 63 61 74 65 73 |.which a|llocates|
|00000240| 20 6d 65 6d 6f 72 79 20 | 74 6f 20 69 74 3a 0a 70 | memory |to it:.p|
|00000250| 3d 28 69 6e 74 20 2a 29 | 6d 61 6c 6c 6f 63 28 6e |=(int *)|malloc(n|
|00000260| 2c 73 69 7a 65 6f 66 28 | 69 6e 74 29 29 3b 0a 4d |,sizeof(|int));.M|
|00000270| 79 20 70 72 6f 62 6c 65 | 6d 20 69 73 3a 20 68 6f |y proble|m is: ho|
|00000280| 77 20 64 6f 20 49 20 6c | 65 74 20 6d 61 69 6e 20 |w do I l|et main |
|00000290| 6b 6e 6f 77 20 6f 66 20 | 74 68 65 20 65 78 69 73 |know of |the exis|
|000002a0| 74 65 6e 63 65 20 6f 66 | 20 74 68 65 0a 61 6c 6c |tence of| the.all|
|000002b0| 6f 63 61 74 65 64 20 6d | 65 6d 6f 72 79 3f 20 4d |ocated m|emory? M|
|000002c0| 79 20 73 6f 6c 75 74 69 | 6f 6e 20 69 73 20 77 72 |y soluti|on is wr|
|000002d0| 69 74 69 6e 67 20 69 6e | 20 6d 61 69 6e 3a 0a 70 |iting in| main:.p|
|000002e0| 3d 28 69 6e 74 20 2a 29 | 72 65 61 6c 6c 6f 63 28 |=(int *)|realloc(|
|000002f0| 70 2c 6e 2a 73 69 7a 65 | 6f 66 28 69 6e 74 29 29 |p,n*size|of(int))|
|00000300| 3b 0a 72 69 67 68 74 20 | 61 66 74 65 72 20 74 68 |;.right |after th|
|00000310| 65 20 66 75 6e 63 74 69 | 6f 6e 20 63 61 6c 6c 2c |e functi|on call,|
|00000320| 20 62 65 66 6f 72 65 20 | 73 6f 6d 65 74 68 69 6e | before |somethin|
|00000330| 67 20 65 6c 73 65 20 67 | 65 74 73 20 77 72 69 74 |g else g|ets writ|
|00000340| 74 65 6e 0a 6f 6e 20 69 | 74 2c 20 77 68 69 63 68 |ten.on i|t, which|
|00000350| 2c 20 74 68 6f 75 67 68 | 20 65 66 66 65 63 74 69 |, though| effecti|
|00000360| 76 65 2c 20 64 6f 65 73 | 6e 27 74 20 73 65 65 6d |ve, does|n't seem|
|00000370| 20 76 65 72 79 20 65 6c | 65 67 61 6e 74 2e 20 42 | very el|egant. B|
|00000380| 65 73 69 64 65 73 2c 20 | 0a 66 75 6e 63 74 69 6f |esides, |.functio|
|00000390| 6e 73 20 6c 69 6b 65 20 | 6d 61 6c 6c 6f 63 28 29 |ns like |malloc()|
|000003a0| 2c 20 73 74 72 64 75 70 | 28 29 2c 20 65 74 63 2e |, strdup|(), etc.|
|000003b0| 2c 20 73 65 65 6d 20 74 | 6f 20 62 65 20 61 62 6c |, seem t|o be abl|
|000003c0| 65 20 74 6f 20 6c 65 74 | 20 0a 74 68 65 20 63 61 |e to let| .the ca|
|000003d0| 6c 6c 69 6e 67 20 66 75 | 6e 63 74 69 6f 6e 20 6b |lling fu|nction k|
|000003e0| 6e 6f 77 20 6f 66 20 74 | 68 65 20 61 6c 6c 6f 63 |now of t|he alloc|
|000003f0| 61 74 65 64 20 6d 65 6d | 6f 72 79 2e 20 57 68 61 |ated mem|ory. Wha|
|00000400| 74 20 69 73 20 74 68 65 | 20 0a 72 69 67 68 74 20 |t is the| .right |
|00000410| 70 72 6f 63 65 64 75 72 | 65 3f 20 41 6e 79 20 73 |procedur|e? Any s|
|00000420| 75 67 67 65 73 74 69 6f | 6e 20 77 69 6c 6c 20 62 |uggestio|n will b|
|00000430| 65 20 67 72 65 61 74 6c | 79 20 61 70 70 72 65 63 |e greatl|y apprec|
|00000440| 69 61 74 65 64 2e 20 0a | 54 68 61 6e 6b 73 20 61 |iated. .|Thanks a|
|00000450| 20 6c 6f 74 2c 0a 0a 4c | 75 63 69 61 6e 6f 20 42 | lot,..L|uciano B|
|00000460| 72 6f 63 63 68 69 65 72 | 69 0a 6c 75 63 69 61 6e |rocchier|i.lucian|
|00000470| 6f 40 67 6e 6f 6d 69 63 | 2e 73 74 61 6e 66 6f 72 |o@gnomic|.stanfor|
|00000480| 64 2e 65 64 75 0a | |d.edu. | |
+--------+-------------------------+-------------------------+--------+--------+